package com.myworkspace.standard.common.base;


import com.myworkspace.standard.common.result.Result;
import com.myworkspace.standard.common.result.ResultDict;

public class BaseController {

    public Result success(Object data) {
        return new Result(ResultDict.RESULT_SUCCESS_CODE, "成功", data);
    }

    public Result fail(String msg) {
        return new Result(ResultDict.RESULT_FAIL_CODE, msg);
    }

}
